package com.ruoyi.project.setsystem.companydept.service;

import com.ruoyi.framework.web.domain.Ztree;
import com.ruoyi.project.setsystem.companydept.domain.CompanyDept;
import com.ruoyi.project.setsystem.rolepower.domain.RolePower;
import com.ruoyi.project.system.dept.domain.Dept;
import com.ruoyi.project.system.role.domain.Role;

import java.util.List;

/**
 * @author 大帅比
 * @date 2020-09-19 14:08
 * @desc 百战程序员 http://www.itbaizhan.com
 */
public interface ICompanyDeptService {

    List<CompanyDept> All(CompanyDept companyDept);

    List<Ztree> selectDeptTree(CompanyDept companyDept);


    List<Ztree> roleDeptTreeData(RolePower rolePower);


    int selectDeptCount(Long parentId);

    boolean checkDeptExistUser(Long deptId);


    int deleteDeptById(Long deptId);


    int insertDept(CompanyDept companyDept);

    int updateDept(CompanyDept companyDept);

    CompanyDept selectDeptById(Long deptId);

    String checkDeptNameUnique(CompanyDept companyDept);
}
